

var imgPath = "/web/ui/img/"
var phoneNav = $('#phoneNav')
var phoneObj = $('#target')
var bodyUl = $('#bodyUl')
var sliderArr = [];

function phoneBut(title = '',func = '',img = '')
{
    img = img ? img : 'layui-icon layui-icon-console'
    var swiperStr = ''

    swiperStr += '<li class="layui-col-xs3">'
    swiperStr += '<a href="javascript:;" onclick="phoneAdd(\''+func+'\')">'
    swiperStr += '<i class="'+img+'"></i>'
    swiperStr += '<cite>'+title+'</cite>'
    swiperStr += '</a>'
    swiperStr += '</li>'

    bodyUl.append($(swiperStr))
}

function phoneTitle(obj)
{
    // title="" text="" color=""
    var title = $(obj).val()
    phoneNav.attr('title',title).text(title)
}
function phoneText(obj)
{
    // title="" text="" color=""
    var title = $(obj).val()
    phoneNav.attr('text',title)
}